home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2003 November / PCWK1103B.iso / DesignCAD 3D Max PLUS trial 30 / DATA1.CAB / Example_Files / Sample_Macros / 3D Box Input .d3m < prev    next >
Encoding:
Text File  |  2003-09-29  |  491 b   |  25 lines

  1. ' This simple macro draws a 3D Box starting at XYZ of 0
  2. ' and relative to the values entered by the user.
  3. '
  4. ' Get User Input
  5.     Input "Enter X Coordinate", KDW1$
  6.     Input "Enter Y Coordinate", KDW2$
  7.     Input "Enter Z Coordinate", KDW3$
  8. ' Display Results
  9.     Window 3,23
  10.     Print KDW1$
  11.     Print KDW2$
  12.     Print KDW3$
  13. ' Wait for user to press key
  14.     AnyKey
  15. ' Draw the Box
  16. >Box
  17.     {
  18.       <Color 0,0,0
  19.       <Layer 1
  20.       <PointXYZ 0.0000,0.0000,0.0000
  21.       <PointXYZ [KDW1$, KDW2$, KDW3$]
  22.       }
  23. End
  24.  
  25.